#include "../system.h"
#include "../glo.h"

#if USE_CHPOLICY

/*===========================================================================*
 *			      do_chpolicy				     *
 *===========================================================================*/
PUBLIC int do_chpolicy(m_ptr)
message *m_ptr;			/* pointer to request message */
{    
    /* change schedulung policy: turn own scheduling policy on/off */
    
    printf("Scheduling switched to: \n");
    
    if(lotteryOn == 0)
    {
        lotteryOn = 1;
        printf("Lottery (created by Jan Kuehni, Andrea Liechti and Christian Fries\n");
    }
    else {
        lotteryOn = 0;
        printf("Built-in scheduling\n");
    }
    
    return(OK);
}
#endif /* USE_CHPOLICY */

